{include file="public/header" /}
<style>
    .layui-input-block{width: 50%}
    .layui-input-inline{width: 50% !important;}
</style>
<body>
<div class="x-body">
    <form action="{:url('save')}" class="layui-form" id="form">
        <input type="hidden" name="pro_id" value="{$pro_id}" autocomplete="off"/>
        <div class="layui-form-item">
            <label class="layui-form-label">标题 </label>
            <div class="layui-input-inline">
                <input type="text" name="title" lay-verify="required" lay-reqtext="请填写标题" placeholder="请填写标题"
                       class="layui-input" lay-verType="tips" autocomplete="off"/>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">分数</label>
            <div class="layui-input-inline">
                <input type="number" name="score" placeholder="请填写分数" lay-reqtext="请填写分数" lay-verify="required"
                       class="layui-input" lay-verType="tips" autocomplete="off"/>
            </div>
            <div class="layui-form-mid layui-word-aux">剩余{$score}分</div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-inline">
                <input type="number" name="sort" lay-verify="required" placeholder="请填写排序"
                       lay-reqtext="请填写排序" value="{$sort}" class="layui-input" lay-verType="tips" autocomplete="off"/>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <button class="layui-btn" lay-filter="save" lay-submit formObj="#form">
                保存
            </button>
        </div>
    </form>
</div>
</body>
{include file="public/footer" /}
</html>